import request from '../utils/request'

export function login(data) {
    return requestAnimationFrame.post('/home/login',data)
}

export function getUser() {
    return request.get('./home/user')
}
export function register() {
    return request.post('/home/register',data)
}


export function getCategoryList() {
    return request.get('./home/category/list')
}


export function getGoodsAlbum(parmas) {
    return request.get('./home/goods/album',{parmas})
}

export function getGoodDetail(params) {
    return request.get('./home/goods',{params})
}

export function getCartList(params) {
    return request.get('./home')
}